import request from '../utils/request';

export const allcate = () => {
    return request({
        url: '/cate/all',
        method: 'get', 
    });
};

export const updatecate = (data) => {
    return request({
        url: '/cate/update',
        method: 'patch', 
        data:data , 
    });
};

export const addcate = (data) => {
    return request({
        url: '/cate/add',
        method: 'post', 
        data:data , 
    });
};

export const deletecate = (data) => {
    return request({
        url: '/cate/delete',
        method: 'post', 
        data:data , 
    });
};

export const queryecharts = () => {
    return request({
        url: '/cate/echarts',
        method: 'get', 
    });
};
